package number

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var _ util.API = (*TaskListAPI)(nil)

var TaskListSet = wire.NewSet(wire.Struct(new(TaskListAPI), "*"))

type TaskListAPI struct {
	util.EmptyAPI
}

func (a *TaskListAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "tasks",
			Title: "号码生成任务", Perms: []*server.Perm{
				{Name: "queryTasks", Title: "查询"},
				{Name: "download", Title: "下载任务生成的号码数据"},
			},
			Order: 7,
		},
	}
}
